<template>
	<view class="has-pdlr-20">
		<view class="is-blod has-mgt-30">{{title}}</view>
		<view class="is-grey is-size-14 has-mgt-15">{{time}}</view>
		<view class="has-mgt-20 is-size-14 is-lh-18">
			<rich-text :nodes="strings"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				title: '',
				nodes:[{
					name: 'div'
				}],
				strings: '',
				time: ''
			}
		},
		onLoad: function(options) {
			this.g_id = options.g_id;
			uni.request({
				url: this.service.FOX_URL + 'diamond/notice_info',
				method:'POST',
				data: {
					g_id:this.g_id
				},
				dataType:'json',
				header:{
					'content-type':'application/x-www-form-urlencoded'
				},
				success: res => {    
					var foxmsg = res.data;
					if (foxmsg.code == 200) {                    
						this.title = foxmsg.data.g_title;
						this.time = foxmsg.data.g_time;
						this.strings = foxmsg.data.g_content;
					}
				}                    
			});
		}
	}
</script>

<style>
</style>
